home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
CAD
/
PKEY11_1.ARJ
/
LF.LSP
< prev
next >
Wrap
Text File
|
1992-03-14
|
645b
|
24 lines
;
; TURNS THE LAYER OFF......................LF
; THEN TURNS IT BACK ON WHEN NEEDED........LO
;
; ********Patrick J. McKee, author********
; ****Copyright 1992, Power Key tm****
;
;
(defun c:LF (/ a b c d)
(graphscr)
(prompt "\nSelect Object on Layer to OFF...")
(setq a (entsel))
(setq b (entget (car a)))
(setq LO (cdr (assoc 8 b)))
(setq d (getvar "CLAYER"))
(if (= LO d)
(prompt "\nCannot turn off Current Layer, Change to New Layer...")
(command "layer" "OF" LO "")
))
;EOF LF
; THIS BEGINS LAON.LSP
(DEFUN C:LO()
(COMMAND"LAYER""ON" LO ""))
;EOF LO